package com.itheima.d11_jdk8_zone;

import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Set<String> availableZoneIds = ZoneId.getAvailableZoneIds();

        for (String s : availableZoneIds) {
            System.out.println(s);
        }

        ZoneId zoneId = ZoneId.of("Japan");
        ZonedDateTime zdt = ZonedDateTime.now(zoneId);
        System.out.println(zdt);


    }
}
